﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WF_ExportTool.Configuration.Tab
{
    /*
     *desc:标签页工具实体类
         */
    public class Tab_Main:BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int TabId { get; set; }
        /// <summary>
        /// 标签页编号
        /// </summary>
        public string TabCode { get; set; }
        public int AutoIndex { get; set; }
        /// <summary>
        /// 显示标题
        /// </summary>
        public string TabTitle { get; set; }
        public int SysId { get; set; }
        /// <summary>
        /// 所属业务功能
        /// </summary>
        public string FuncTitle { get; set; }
        public Boolean IsControlByRight { get; set; }
        public string RoleNames { get; set; }
        public string RoleIds { get; set; }
        public string UserNames { get; set; }
        public string UserIds { get; set; }
        public string DepNames { get; set; }
        public string DepIds { get; set; }
    }
    public class Tab_Element:BaseEntity {
        public int EleId { get; set; }
        public int TabId { get; set; }
        /// <summary>
        /// 显示标题
        /// </summary>
        public string EleTitle { get; set; }
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int ShowOrder { get; set; }
        /// <summary>
        /// 目标页面
        /// </summary>
        public string TargetUrl { get; set; }
        /// <summary>
        /// 是否启用根据条件来判断列是否显示
        /// </summary>
        public Boolean IsUseExpressionShow { get; set; }
        /// <summary>
        /// 用来比较是否显示的原值表达式
        /// </summary>
        public string LeftExpression { get; set; }
        /// <summary>
        /// 比较方法
        /// </summary>
        public int ShowMethod { get; set; }
        /// <summary>
        /// 用来比较是否显示的目标值表达式
        /// </summary>
        public string RightExpression { get; set; }
        /// <summary>
        /// 比较结果为真时，页签是否显示
        /// </summary>
        public Boolean IsShowByExpression { get; set; }
    }
}
